home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší České Hry / Nej české hry.iso / hry / vesmirna becherovka / 2004 Vesmírná Becherovka / Becherovka.exe / scripts / DefineSprite_2969 / frame_1 / DoAction.as
Encoding:
Text File  |  2004-09-30  |  2.1 KB  |  76 lines

  1. hit = false;
  2. if(this.hitTest(_root.s.pohyb.laser.n1._x,_root.s.pohyb.laser.n1._y,true))
  3. {
  4.    hit = true;
  5.    _root.s.pohyb.laser.sNum -= 1;
  6.    _root.s.pohyb.laser.n1.num = 0;
  7.    _root.s.pohyb.laser.n1._x = -500;
  8. }
  9. if(this.hitTest(_root.s.pohyb.laser.n2._x,_root.s.pohyb.laser.n2._y,true))
  10. {
  11.    hit = true;
  12.    _root.s.pohyb.laser.sNum -= 1;
  13.    _root.s.pohyb.laser.n2.num = 0;
  14.    _root.s.pohyb.laser.n2._x = -500;
  15. }
  16. if(this.hitTest(_root.s.pohyb.laser.n3._x,_root.s.pohyb.laser.n3._y,true))
  17. {
  18.    hit = true;
  19.    _root.s.pohyb.laser.sNum -= 1;
  20.    _root.s.pohyb.laser.n3.num = 0;
  21.    _root.s.pohyb.laser.n3._x = -500;
  22. }
  23. if(this.hitTest(_root.s.pohyb.laser.n4._x,_root.s.pohyb.laser.n4._y,true))
  24. {
  25.    hit = true;
  26.    _root.s.pohyb.laser.sNum -= 1;
  27.    _root.s.pohyb.laser.n4.num = 0;
  28.    _root.s.pohyb.laser.n4._x = -500;
  29. }
  30. if(this.hitTest(_root.s.pohyb.laser.n5._x,_root.s.pohyb.laser.n5._y,true))
  31. {
  32.    hit = true;
  33.    _root.s.pohyb.laser.sNum -= 1;
  34.    _root.s.pohyb.laser.n5.num = 0;
  35.    _root.s.pohyb.laser.n5._x = -500;
  36. }
  37. if(this.hitTest(_root.s.pohyb.laser.n6._x,_root.s.pohyb.laser.n6._y,true))
  38. {
  39.    hit = true;
  40.    _root.s.pohyb.laser.sNum -= 1;
  41.    _root.s.pohyb.laser.n6.num = 0;
  42.    _root.s.pohyb.laser.n6._x = -500;
  43. }
  44. if(this.hitTest(_root.s.pohyb.laser.n7._x,_root.s.pohyb.laser.n7._y,true))
  45. {
  46.    hit = true;
  47.    _root.s.pohyb.laser.sNum -= 1;
  48.    _root.s.pohyb.laser.n7.num = 0;
  49.    _root.s.pohyb.laser.n7._x = -500;
  50. }
  51. if(this.hitTest(_root.s.pohyb.laser.n8._x,_root.s.pohyb.laser.n8._y,true))
  52. {
  53.    hit = true;
  54.    _root.s.pohyb.laser.sNum -= 1;
  55.    _root.s.pohyb.laser.n8.num = 0;
  56.    _root.s.pohyb.laser.n8._x = -500;
  57. }
  58. if(this.hitTest(_root.s.pohyb.laser.n9._x,_root.s.pohyb.laser.n9._y,true))
  59. {
  60.    hit = true;
  61.    _root.s.pohyb.laser.sNum -= 1;
  62.    _root.s.pohyb.laser.n9.num = 0;
  63.    _root.s.pohyb.laser.n9._x = -500;
  64. }
  65. if(this.hitTest(_root.s.pohyb.laser.n10._x,_root.s.pohyb.laser.n10._y,true))
  66. {
  67.    hit = true;
  68.    _root.s.pohyb.laser.sNum -= 1;
  69.    _root.s.pohyb.laser.n10.num = 0;
  70.    _root.s.pohyb.laser.n10._x = -500;
  71. }
  72. if(hit)
  73. {
  74.    gotoAndPlay(3);
  75. }
  76.